<html>
<head>
<title>300px Body</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (300px Body.jpg) -->
<script language="JavaScript" src="../admin/logic/validation/validation.js"  type="text/javascript"></script>
<script language="JavaScript" src="validation/sub_marks.js" type="text/javascript"></script>
<table width="800" height="173" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td><img src="images/progress_report.gif" width="800" height="71"></td>
	</tr>
	<tr >
	<td height="64" background="../admin/images/2.gif" style="background-repeat:repeat-y"><table width="750" border="0" cellspacing="0" cellpadding="0">
	<?php 
	  
	    include'../admin/logic/Classes/db.php';
	
	    $x=new Dbconnect();
	
	    $con=$x->getConnection();
	 
	    $result1=mysql_query("select sub_gr from subject_code",$con);
	     
		 $user=$_SESSION['user'];
	    
		 //getting emplyee or registration number using User name
	    $result3=mysql_query("select emp_reg from login where u_name='$user'",$con);
		
		while($row3=mysql_fetch_array($result3)){
		 $emp_reg=$row3['emp_reg'];
         }
		 
		 //getting student name using Registration number
		 
		 $result2=mysql_query("select l_name,f_name from student where reg_no='$emp_reg'",$con);
		 
		 while($row2=mysql_fetch_array($result2)){
		 $first=$row2['f_name'];
		 $last=$row2['l_name'];
         $full_name=$first." ".$last;
		 }

		 ?>

      <form method="post" action="testgraph.php" target="_blank" onSubmit="return validate()"> 
      <tr>
      <td width="38"></td>
        <td width="103"><strong>Subject-Code</strong></td>
        <td width="158"><select name="sltSubgr" id="sltSubgr">
		   <option value="Select">Subject_code</option>
           <?php while($row1=mysql_fetch_array($result1)) {?>
		  <option value="<?php echo $row1['sub_gr'];  ?>"><?php echo $row1['sub_gr'];  ?>   </option>
        <?php } ?>
        </select></td>
        <td width="58"><strong>Year</strong></td>
        <td width="66"><select name="sltYr" id="sltYr">
		  <option value="Select">Year</option>
          <option value="2012">2012</option> 
          <option value="2013">2013</option>
          <option value="2014">2014</option>
          <option value="2015">2015</option>
           </select>        </td>
        <td width="50">&nbsp;</td>
        <td width="113"><strong>Student Name :</strong></td>
        
        <td width="164"><div align="left" class="error_strings"><?php echo $full_name;  ?></div></td>
      </tr>
	  <tr>
	    <td>&nbsp;</td>
	    <td colspan="6">&nbsp;</td>
	    <td>&nbsp;</td>
	    </tr>
	  <tr>
        <td colspan="5">&nbsp;</td>
        <td colspan="2"><input type="submit" name="Submit" value="Go" ></td>
        <td>&nbsp;</td>
	  </tr></form>
    </table></td>
	</tr>
	<tr>
		<td>
			<img src="../admin/images/3.gif" width="800" height="40" alt=""></td>
	</tr>
</table>

<!-- End ImageReady Slices -->
</body>
</html>